<?php
//рус
include_once(_APP_PATH. 'modules/admin/controllers/articles/articles_admin_http.php');
class articles_admin_http_web extends articles_admin_http
{   
    protected function ControllerInit ()
    {

    }    
    
    protected function PrimaryActionInit ($basicActionName)
    {
        $this->_module->GetDecorator()->SetMenuActiveElement('articles/list');     
    }    
    
    /**
		экшен по-умолчанию
	*/
    public function PrAction ()
    {
        $this->out_articlesPr();
    }    
    
    public function out_articlesPrAction()
    {
    	$blog = $this->GetBlogFromQueryId();    	    	
		$this->OutArticles($blog);		
    }
    
    public function add_articlePrAction($entry = null)
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->AddArticle($blog, $entry);  	
    }

    public function media_add_articlePrAction()
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->AddArticle($blog);  	
    }    
    
    public function save_articlePrAction ()
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->SaveArticle($blog);
    }     
    
    public function del_articlePrAction()
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->DelArticle($blog); 	
    }
    
    public function save_theme_articlesPrAction()
    {
    	$blog = $this->GetBlogFromQueryId();    	
    	$this->SaveThemeArticles($blog);
    }
    
    public function del_theme_articlePrAction()
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->DelThemeArticle($blog);   	
    }    

    public function out_commentsPrAction()
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->OutComments($blog);   	
    }

    public function del_commentPrAction()
    {
    	$blog = $this->GetBlogFromQueryId();
    	$this->DelComment($blog);   	
    }     
}